module.exports = {
  presets: [
    '@babel/preset-env'
  ],
  // 添加以下配置来处理ES模块
  env: {
    test: {
      plugins: ['@babel/plugin-transform-modules-commonjs']
    }
  }
}